import request from '@/utils/request'

// 查询付款详情列表
export function listInstallments(query) {
  return request({
    url: '/fep/installments/list',
    method: 'get',
    params: query
  })
}

// 查询付款详情详细
export function getInstallments(payId) {
  return request({
    url: '/fep/installments/' + payId,
    method: 'get'
  })
}

// 新增付款详情
export function addInstallments(data) {
  return request({
    url: '/fep/installments',
    method: 'post',
    data: data
  })
}

// 修改付款详情
export function updateInstallments(data) {
  return request({
    url: '/fep/installments',
    method: 'put',
    data: data
  })
}

// 删除付款详情
export function delInstallments(payId) {
  return request({
    url: '/fep/installments/' + payId,
    method: 'delete'
  })
}
